<%--
  Created by IntelliJ IDEA.
  User: 86135
  Date: 2023/3/29
  Time: 16:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Object object = session.getAttribute("validated");
    if (object != null){
%>
<script language="JavaScript">
    alert("购买失败，余额不足！")
    location = document.referrer
</script>
<%
} else {
%>
<script language="JavaScript">window.alert("请先登录！")</script>
<script language="JavaScript">history.back()</script>
<%
    }
%>
</body>
</html>
